﻿using Microsoft.AspNetCore.Http;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace PhoneBook.Middlewares
{
    public class HelloworldTooMiddleware
    {
        private RequestDelegate _next;
        public HelloworldTooMiddleware(RequestDelegate next)
        {
            _next = next;
        }
        public async Task Invoke(HttpContext context)
        {
            await context.Response.WriteAsync("4444Hello World!");
            await _next(context);
        }
    }
}
